.page-action {
    text-align: right;
    a {
        display: inline-block;
        padding: 5px 10px;
        background: #97CCFE; 
        min-width: 100px;
        text-align: center;
    }
}

#table-box {
    select {
        height: auto;
        display: block;
        min-width: 200px;
    }
}

.wx-editor {
    .zd-tab-head {
        .zd-tab-item {
            width: 80px;
        }
    }
    textarea {
        width: 100%;
        height: 100px;
    }
}

.form-inline {
    .input-group {
        select {
            min-width: 120px;
        }
        .file-input {
            display: inline-block;
            button {
                background: #97CCFE;
                min-width: 70px;
                padding: 0 30px;
                border: none;
                display: inline-block;
                height: 30px;
            }
        }
    }
}

table {
    .active {
        background: #f00;
        color: #fff;
        padding: 0 10px;
        display: inline-block;
        line-height: 30px;
    }
}

.tree {
    .tree-item {
        position: relative;
        line-height: 30px;
        .tree-action {
            float: right;
        }
        .tree-children {
            padding-left: 25px;
            .tree-item {

            }
        }
    }
    .tree-add {

    }
}

.wx-editor {
    .media-box {
        .upload-box {
            text-align: center;
        }
        .input-group {
            input {
                width: 100%;
            }
            &.inline-input-group {
                select {
                    width: 20%;
                }
                input {
                    width: 70%;
                }
            }
        }
        .media-grid {
            max-height: 200px;
            overflow-y: auto;
            li {
                list-style: none;
                display: inline-block;
                box-sizing: border-box;
                width: 80px;
                height: 80px;
                img {
                    width: 100%;
                    height: 100%;
                }
                &.active,
                &:hover {
                    border:  1px solid #97CCFE;
                }
            }
        }
        .media-list {
            li {
                list-style: none;
                padding: 2px 10px;
                border-bottom: 1px solid #97CCFE;
                cursor: default;
                &.active,
                &:hover {
                    background: #97CCFE;
                }
            }
        }
    }
    .zd-tab-head {
        .zd-tab-item {
            width: auto;
            min-width: 80px;
        }
    }
    .template-preview {
        background-color: #fff;
        border: 1px solid;
        border-radius: 5px;
    }
}

.editor-box {
    .editor-template-box {
        width: 520px;
        float: left;
        height: 800px;
        position: relative;
        .template-menu {
            width: 80px;
            li {
                text-align: center;
                line-height: 30px;
                list-style: none;
                cursor: pointer;
                &.active {
                    background: #333;
                    color: #fff;
                }
            }
        }
        .template-box {
            overflow-x: hidden;
            height: 800px;
            width: 440px;
            position: absolute;
            top: 0;
            left: 80px;
            border: 4px solid #D8D8D8;
            overflow-y: auto;
            padding: 0 5px;
            .templdate-list {
                li {
                    list-style: none outside none;
                    margin-top:15px;
                    position:relative;
                    cursor:pointer;
                    overflow:visible;
                    min-height:64px;
                    // img {
                    //     max-width: 100%;
                    //     min-height: 110px;
                    // }
                    &:hover {
                        box-shadow:rgb(239, 112, 96) 0px 0px 5px 1px;
                    }
                }
            }
        }
    }
    .editor {
        width: 440px;
        height: 800px;
        float: left;
        border: 4px dotted #D8D8D8;
    }
    
}

.qr-box {
    margin: 20vh auto;
    width: 258px;
}

.emulate-box {
    background-color: #f4f4f4;
    position: relative;
    .box-header {
        background-color: #f4f4f4;
        text-align: center;
        position: absolute;
        line-height: 40px;
        height: 40px;
        top: 0;
        width: 100%;
        z-index: 99;
        box-shadow: 1px 1px 0 rgba($color: #777, $alpha: .1);
        .fa-arrow-left {
            position: absolute;
            left: 10px;
            font-size: 30px;
            top: 3px;
        }
        .header-right {
            float: right;
            >.fa {
                font-size: 20px;
                display: block;
                width: 40px;
                text-align: center;
                cursor: pointer;
                line-height: 40px;
            }
            .sub-box {
                display: none;
                position: absolute;
                margin-top: 10px;
                right: 0;
                background-color: #f4f4f4;
                width: 200px;
                z-index: 5;
                box-shadow: 0 0 10px rgba(0,0,0,.5);
                .qr {
                    height: 200px;
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
                .name {
                    line-height: 20px;
                    font-weight: 700;
                }
                .desc {
                    line-height: 16px;
                    color: #777;
                    font-size: 12px;
                    text-align: left;
                    padding: 0 5px 10px;
                }
                &::before {
                    content: " ";
                    display: block;
                    width: 0px;
                    height: 0px;
                    border: 10px solid transparent;
                    border-bottom-color: #f4f4f4;
                    position: absolute;
                    top: -20px;
                    right: 10px;
                }
            }
            &:hover {
                .sub-box {
                    display: block;
                }
            }
        }
    }
    .scroll-body {
        padding: 40px 7px 100px;
        height: 100vh;
        overflow-y: auto;
        .message-more,
        .message-line,
        .message-tip,
        .time-item {
            text-align: center;
            line-height: 30px;
            color: #777;
            font-weight: 300;
        }
        .message-left, 
        .message-right {
            position: relative;
            margin: 0.5rem 0;
            &:after {
                content: ' ';
                clear: both;
                display: table;
            }
            .avatar {
                position: absolute;
                top: 0;
                height: 2.5rem;
                width: 2.5rem;
                border-radius: 50%;
            }
            .content {
                max-width: 66%;
                background: rgba(0,255,255,0.16);
                line-height: 2.5rem;
                padding: 0 0.625rem;
                word-break: break-word;
                &::before {
                    content: '';
                    position: absolute;
                    z-index: 10;
                    border: 0.375rem solid transparent;
                    top: 0.9375rem;
                }
            }
        }
        .message-left {
            .avatar {
                left: 0;
            }
            .content {
                margin-left: 3.25rem;
                float: left;
                &::before {
                    left: 2.5rem;
                    border-right-color: rgba(0, 255, 255, 0.16);
                }
            }
        }
        .message-right {
            .avatar {
                right: 0;
            }
            .content {
                float: right;
                margin-right: 3.25rem;
                &::before {
                    right: 2.5rem;
                    border-left-color: rgba(0, 255, 255, 0.16);
                }
            }
        }
        .new-item {
            background-color: #fff;
            display: block;
            color: #333;
            text-decoration: none;
            .thumb {
                width: 100%;
                height: 160px;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .title {
                padding: 5px 20px 20px;
                font-size: 16px;
                font-weight: bold;
                word-wrap: break-word;
            }
        }

    }
    .box-footer {
        box-shadow: 1px -1px 0 rgba($color: #777, $alpha: .1);
        position: absolute;
        background-color: #f4f4f4;
        bottom: 0;
        left: 0;
        width: 100%;
        .input-box {
            display: none;
            line-height: 40px;
            height: 40px;
            //display: grid;
            grid-template-columns: 50px 1fr 50px;
            div {
                text-align: center;
            }
            textarea,
            input {
                outline: none;
                padding: 10px;
                font-size: 16px;
            }
        }
        .input-more-box  {
            background-color:rgba($color: #fff, $alpha: .5);
            display: none;
            .icon-item {
                display: inline-block;
                width: 80px;
                height: 80px;
                text-align: center;
                background-color: #fff;
                border-radius: 10px;
                margin: 5px;
                .fa {
                    font-size: 30px;
                    display: block;
                    margin: 5px 0 10px;
                }
            }
        }
        .menu-box {
            background-color: #fff;
            line-height: 40px;
            height: 40px;
            display: grid;
            grid-template-columns: 50px 1fr;
            div {
                text-align: center;
            }
            a {
                text-decoration: none;
            }
        }
        .menu-body {
            display: flex;
            justify-content: space-around;
            flex-flow: row nowrap;
            li {
                list-style: none;
                position: relative;
                ul {
                    display: none;
                    position: absolute;
                    bottom: 50px;
                    background-color: #fff;
                    width: 160px;
                    text-align: center;
                    margin-left: -80px;
                    li {
                        border-top: 1px solid #ccc;
                    }
                    &::after {
                        content: '';
                        position: absolute;
                        z-index: 10;
                        border: 0.375rem solid transparent;
                        border-top-color: #fff;
                    }
                }
                &.active {
                    ul {
                        display: block;
                    }
                }
            }
        }
        &.toggle-input {
            .menu-box {
                display: none;
            }
            .input-box {
                display: grid;
            }
            &.toggle-more {
                .input-more-box {
                    display: block;
                }
            }
        }
        
    }
}

.rich_media {
    padding: 12px;
    .rich_media_title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    .rich_media_meta_list {
        margin-bottom: 22px;
        line-height: 20px;
        font-size: 15px;
        word-wrap: break-word;
        word-break: break-all;
        a {
            color: #576b95;
            text-decoration: none;
        }
        em {
            font-style: normal;
        }
        .rich_media_meta_text {
            color: rgba(0,0,0,0.3);
        }
    }
    .rich_media_content {
        overflow: hidden;
        color: #333;
        font-size: 17px;
        word-wrap: break-word;
        hyphens: auto;
        text-align: justify;
        position: relative;
        z-index: 0;
    }
}